package com.bangmai.service;

import java.io.IOException;
import java.util.logging.Logger;

import com.bangmai.model.Receiver;

public interface CustomsService {
Logger logger=Logger.getLogger(CustomsService.class.getName());
/**
 * 
 * @param type 标识 报文的种类 1-海关 ，2-商检，3-支付公司，4-入库，5-出库
 * @throws Exception
 */
	
	public  void createAndSendPacket(int type)throws Exception;//生成报文
	public void  receivePacket(int type) throws Exception;//接受回执报文
	public  void analysepacket(int type)throws Exception;//分析报文
	public  void update(int type,Receiver receiver)throws Exception;//更新数据库状态

}
